package com.ljx.recruitment.interview.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.*;

/**
 * @Author: LiJunXi
 * @Description:
 * @Date: 2024-11-03  13:45
 */
@Getter
@AllArgsConstructor
public enum ResumeItemTypeRadioOptEnum {

    IDENTITY_CARD("id type", "身份证"),
    CHU_ZHONG("edu background", "初中"),
    GAO_ZHONG("edu background", "高中"),
    ZHUAN_KE("edu background", "专科"),
    BEN_KE( "edu background", "本科"),
    SHUO_SHI("edu background", "硕士"),
    BO_SHI("edu background", "博士"),
    OTHER_EDU("edu background", "其他"),
    TONG_ZHAO("study mode", "统招全日制"),
    CHENG_REN_GAO_KAO("study mode", "成人高考"),
    ZI_KAO("study mode", "自考"),
    OTHER_EXP("study mode", "其他"),
    MAN("gender", "男"),
    WOMAN("gender", "女");

    private String key;
    private String value;

    private static Map<String, List<String>> cache = new HashMap<>();
    static {
        for (ResumeItemTypeRadioOptEnum item : ResumeItemTypeRadioOptEnum.values()) {
            List<String> items = new ArrayList<>();
            if (cache.containsKey(item.getKey())) {
                items = cache.get(item.getKey());
            }
            items.add(item.getValue());
            cache.put(item.getKey(), items);
        }
    }

    public static List<String> getOpts(String key){
        return cache.get(key);
    }
}
